package com.example.portlocalforward.controller.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 端口本地转发请求模型
 * 
 * @author Generated
 * @version 1.0.0
 */
@ApiModel(description = "端口本地转发请求信息")
@Data
public class PortLocalForwardRequest {

    @ApiModelProperty(value = "转发名称", required = true, example = "k8s")
    private String name; // 转发名称

    @ApiModelProperty(value = "SSH隧道ID", required = true, example = "1")
    private Long sshTunnelId; // SSH隧道ID（外键）

    @ApiModelProperty(value = "本地端口", required = true, example = "9443")
    private int localPort; // 本地端口

    @ApiModelProperty(value = "远程目标主机", required = true, example = "10.10.22.57")
    private String remoteHost; // 远程主机

    @ApiModelProperty(value = "远程目标端口", example = "9443")
    private int remotePort; // 远程端口

    @ApiModelProperty(value = "访问地址", example = "http://10.10.22.57:9443")
    private String url; // 访问地址

    @ApiModelProperty(value = "标签，多个标签用逗号分割", example = "开发环境,测试环境")
    private String tags; // 标签，多个标签用逗号分割
}
